package nevo.core;

import java.util.Map;

/**
 * Data structure containing information about a single iteration, including
 * input point, output point, the value of the objective function for the given
 * input, and possibly the gradient and hessian of the function at the input point.
 * 
 * @author mschachter
 */
public class IRecord
{   
   /**
    * The input given to the optimizer for this iteration.
    */
   protected Map<String,Object> input;
	public void setInput(Map<String,Object> t) { input = t; }
	public Map<String,Object> getInput() { return input; }
   
   /**
    * The output (next guess) produced by the optimizer for this iteration.
    */
   protected Map<String,Object> output;
   public void setOutput(Map<String,Object> t) { output = t; }
   public Map<String,Object> getOutput() { return output; }
	
   /**
    * The value of the objective function given the input for this iteration.
    */
   protected double value;
	public void setValue(double f) { value = f; }
	public double getValue() { return value; }
}
